﻿namespace Ganss.Excel.Tests.Data
{
    class ProductFormulaMapped
    {
        public decimal Result { get; set; }
        public string Formula { get; set; }
        public string ResultString { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is not ProductFormulaMapped o) return false;
            return o.Result == Result && o.Formula == Formula && o.ResultString == ResultString;
        }

        public override int GetHashCode()
        {
            return (Formula + ResultString + Result).GetHashCode();
        }
    }
}